<%@ Control Language="c#" Inherits="Dimok.Aspx.Manager.Lib.Controls.Dealer" CodeFile="Dealer.ascx.cs" %>
<?XML:NAMESPACE PREFIX="DIMOK"/>
<?IMPORT namespace="DIMOK" implementation="/Manager/Lib/Controls/Dealer/Dealer.htc" >
<DIMOK:DEALER
	<ASP:LITERAL ID="ltrAttrs" Runat="server"></ASP:LITERAL>
>
	<XML id="XmlLoanInfo" runat="server" ondatasetcomplete="initPreset(document.body)"></XML>
<FIELDSET style="display:inline;vertical-align:top"><LEGEND state="+"><LABEL style="VERTICAL-ALIGN: middle;">DEALER</LABEL>
		<SELECT  style="VERTICAL-ALIGN: middle;" id="selDealers" onchange="selectSalesPerson(this)" dataSrc="#XmlLoanInfo" datafld="DealerID" runat="server" NAME="selDealers"></SELECT>
	</LEGEND>
	<TABLE>
		<col style="white-space:nowrap"></col>
		<TR><TD>Sales Person</TD>
				<TD colspan="100" align="left">
					<SELECT id="selSalesPersons" dataSrc="#XmlLoanInfo" datafld="DealerSalesPersonID" runat="server" NAME="selSalesPersons"></SELECT>
					Phone/Fax <SPAN datasrc="#XmlLoanInfo" datafld="DealerPhone" tabindex="-1" class="TextBox"></SPAN> /
					<SPAN datasrc="#XmlLoanInfo" datafld="DealerFax" tabindex="-1" class="TextBox"></SPAN>
				</TD>
		</TR>
		<TR><td>Contract Holder</td>
				<TD colspan="100" align="left">
					<SELECT datasourceid="dsContractHolders" DataTextField="Nick" DataValueField="ID" dataSrc="#XmlLoanInfo" datafld="ContractHolderID" runat="server">
						<option value=""></option>
					</SELECT>
					Purchase Batch 
					<b><img src="/images/buttons/delete.gif" style="vertical-align:middle" title="Remove from batch."
									onclick="removeFromBatch(this)">
							<span dataSrc="#XmlLoanInfo" dataFld="PurchaseBatchID"></span>:<span dataSrc="#XmlLoanInfo" dataFld="PurchaseBatchName"></span>
					</b>
				</TD>
		</TR>
	</TABLE>
</FIELDSET>
</DIMOK:DEALER>
<DS:ContractHoldersDataSource ID="dsContractHolders" runat="server" />
